package com.gwq.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gwq.computedUtils.NewExercise;
import com.gwq.dto.ComputedDto;
import com.gwq.entity.Equation;
import com.gwq.entity.EquationRecord;
import com.gwq.mapper.ComputedMapper;
import com.gwq.mapper.EquationRecordMapper;
import com.gwq.param.ExEqualsParam;
import com.gwq.param.ExerciseParam;
import com.gwq.service.ComputedService;
import com.gwq.service.ComputerService;
import com.gwq.service.EquationRecordService;
import com.gwq.utils.StringUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

@Service
@Slf4j
public class EquationRecordServicelmpl extends ServiceImpl<EquationRecordMapper, EquationRecord> implements EquationRecordService {

    @Autowired
    private ComputerService computerService;


    @Async
    @Override
    public void addEquationRecord(List<EquationRecord> equationRecords) {
        saveBatch(equationRecords);
    }
}
